#!/bin/bash
output=$(docker ps -aq )
if [ -n "$output"  ];  then
 docker ps -a
 docker stop $(docker ps -aq );
 docker rm $(docker ps -aq ) ;
 echo  "rm  docker finish";

fi


docker_images=$(docker images --format "{{.Repository}}:{{.Tag}}")
if [ -n "docker_images"  ];  then
 docker rmi $(docker images --format "{{.Repository}}:{{.Tag}}");
 echo "detele Images finish"
fi

